<template>
  <div :class="$style.container">
    <User/>
    <Ilike :lists="lists"/>
  </div>
</template>

<script>
import User from '../../components/myFilm/user'
import Ilike from '../../components/myFilm/iLike'
import http from '../../APIService/http'
export default {
  components: {
    User,
    Ilike
  },
  async asyncData(ctx) {
    try {
      let params = {
        token: ctx.app.$cookiz.get(ctx.app.$api.token)
      }
      let res = await http.get(`/dianshang/getLike`, params)
      if (res.code === 0) {
        return { lists: res.data }
      }
    } catch (err) {
      console.log('get i like films fail:', err)
    }
  }
}
</script>

<style lang='scss' module>
.container {
}
</style>
